import { createSSRApp } from 'vue'
import App from './App'
import pinia from './stores'

// 引入 uni-ui
import uniIcons from '@dcloudio/uni-ui/lib/uni-icons/uni-icons.vue'

export function createApp() {
  const app = createSSRApp(App)
  
  // 注册全局组件
  app.component('uni-icons', uniIcons)
  
  // 使用 pinia
  app.use(pinia)
  
  return {
    app
  }
}